﻿using System.Collections.Generic;
using Flywheel.Generator;
using Flywheel.UI;
using NUnit.Framework;

namespace Flywheel.UnitTests
{
	[TestFixture]
	public class tester
	{
		[Test]
		public void TEST_NAME()
		{
			ITemplateStatusView view = new TemplateStatusView(new FileSystem());
			view.UpdateResults(new[]
			                   	{
			                   		new TemplateRunResult
			                   			{
			                   				TemplateFilename = "templatename",
			                   				Result = RunResult.Success,
			                   				OutputFilename =  @"c:\asdafsd\asdfasd\fadfadsf.cs",
			                   				Errors = new List<Error> {new Error {Description = "first error"}, new Error(){Description = "the other error"}}
			                   			}
			                   	});
			view.CancelClicked = () => view.Close();
			view.ShowDialog();
		}
	}
}